package com.itheima.static_case.Demo8;

public class Demo8 {
    public static void main(String[] args) {
        // 案例7 - 方法重写

        Animal animal = new Animal("兔子");
        animal.print();

        Cat cat = new Cat("喵咪", "白色");
        cat.print();
    }
}
